package conson.tech.manage.api.app.feign;

import conson.tech.core.constant.SecurityConstants;
import conson.tech.core.response.Response;
import conson.tech.manage.api.app.dto.AppAdvertDTO;
import conson.tech.manage.api.app.form.AppAdvertForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;
import java.util.List;

/**
 * InterfaceName: AdvertMobileFeignService
 * Description: 广告
 * Author: HXL
 * Date: 2020/5/29 11:00 上午
 * Version: 1.0
 */
@FeignClient(name = "manageApp", url = "${feignclient.manage-app.domain:}")
@RequestMapping(SecurityConstants.MOBILEAPI)
public interface AdvertMobileFeignService {
    @PostMapping("/queryAd")
    Response<List<AppAdvertDTO>> queryAdList(@Valid @RequestBody AppAdvertForm form);
}
